<#assign base=request.contextPath />
<#assign oneLabel="系统管理">

<#assign twoLabel="职位管理">
<#assign twoUrl=base+"/job/list">

<#if jobDO?? && (jobDO.id)!=0>
	<#assign leafLabel="编辑职位">
	<#else>
	<#assign leafLabel="新增职位">
</#if>
<!DOCTYPE html>
<html lang="en">
<head>
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName" method="post">
<#include "/commons/hiddenField.ftl">
<input type="hidden" name="id" value="${jobDO.id!''}"/>
<div class="row">
	<div class="col-xs-12">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				名称<span class="red">*</span>
			</label>
			<div class="col-sm-4">
				<input type="text" name="name" value="${jobDO.name!''}" class="col-sm-10" />
			</div>
            <div class="help-block col-xs-12 col-sm-reset inline red">
            <#if jobDO??>
			    <@spring.bind "jobDO.name" />
			    <@spring.showErrors "<br>"/>
			</#if>
            </div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">备注</label>
			<div class="col-sm-4">
				<textarea name="remark" class="col-sm-10" rows="4">${jobDO.remark!''}</textarea>
			</div>
	        <div class="help-block col-xs-12 col-sm-reset inline red">
	            <#if jobDO??>
				    <@spring.bind "jobDO.remark" />
				    <@spring.showErrors "<br>"/>
				</#if>
	         </div>
	    </div>
	</div><!-- /.col -->
</div><!-- /.row -->
</form>
<div class="hr hr32 hr-dotted"></div>

<div class="clearfix">
	<div class="col-md-offset-2 col-md-9">
		<button class="btn btn-xs btn-info" type="button" id="save_id"
			url="<#if jobDO??&&jobDO.id!=0>${base}/job/edit<#else>${base}/job/add</#if>">
			<i class="icon-save bigger-110"></i>修改
		</button>
		<button class="btn btn-xs return_class" type="button" url="${base}/job/list">
			<i class="icon-reply bigger-110"></i>返回
		</button>
	</div>
</div>
<#include "/commons/footer.ftl">
</body>
</html>
